package com.jumper.property.comparer.core.diff.getter;

import com.jumper.property.comparer.core.bean.CombinationPropertySetting;
import com.jumper.property.comparer.core.diff.Element;
import com.jumper.property.comparer.core.diff.value.CombinationDiff;

public class CombinationDiffGetter extends AbstractDiffGetter<CombinationPropertySetting> {

    @Override
    public void visit(Element<CombinationPropertySetting> element) {
        CombinationDiff diff = new CombinationDiff(element.getSetting(), element.getBeforeValue(), element.getAfterValue());
        addDiffs(diff.getDiffValues());
    }
}
